package dbops

import "log"

func AddVideoDeletionRecord(vid string) error {
	stmtIns, err := dbConn.Prepare("INSERT INTO video_del_rec (video_id) VALUES(?)")
	if err != nil {
		return err
	}
	_, err = dbConn.Exec(vid)
	if err != nil {
		log.Printf("AddVideoDeletionRecord error:%v", err)
		return err
	}
	defer stmtIns.Close()
	return nil
}
